package cn.huxingyuan.mapper;



import cn.huxingyuan.article.domain.Article;
import cn.huxingyuan.article.query.ArticleQuery;

import java.util.List;

/**
 * @author Hu
 * 2025/8/6 16:27
 */
public interface ArticleMapper {
    Article findById(Long id);

    List<Article> findAll();

    void add(Article article);

    void update(Article article);

    void deleteById(Long id);

    void batchDelete(List<Long> ids);

    List<Article> pageAll(ArticleQuery articleQuery);

    List<Article> getRelative(Long id,Long articleType);
}
